Skip to content

Fix code submission delays when the workspace viewer contains large number of objects#1713

Open
Fred-Wu wants to merge 2 commits into
REditorSupport:masterfrom
Fred-Wu:workspace-viewer-improve
Open

Fix code submission delays when the workspace viewer contains large number of objects#1713
Fred-Wu wants to merge 2 commits into
REditorSupport:masterfrom
Fred-Wu:workspace-viewer-improve

Conversation

@Fred-Wu

@Fred-Wu Fred-Wu commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR is to fix code submission delays when the workspace viewer contains large, wide, or deeply nested objects.

After every command, the workspace viewer inspected objects in the global environment to build their details. Inspecting and serialising this information could take significant time for large objects. Because the inspection runs in the active R session, R could not process newly submitted code until the workspace refresh finished, which causes noticeable delay between code submission and execution.

Workspace refreshes now collect only concise top-level metadata. Refreshes are delayed briefly, and repeated refresh requests are combined into a single refresh, allowing newly submitted code to run first. Detailed object metadata is lazy-loaded when an object is expanded.

Changes

  • Delay workspace refreshes briefly so newly submitted code can run first.
  • Combine repeated workspace refresh requests into a single refresh.
  • Lazy-load the next level of object metadata when expanded.
  • Support recursive expansion for lists, environments, pairlists, S4 objects, and data frames.
  • Paginate large objects into groups of 500 items, with ... loading the next page.
  • Remove inspection settings replaced by lazy loading:
    • r.session.objectLengthLimit
    • r.session.objectTimeout
    • r.session.levelOfObjectDetail
image image

Fred-Wu added 2 commits June 8, 2026 19:09
…arge objects by delaying workspace inspection until after command submission.

 - Fixed nested expansion in the workspace viewer for lists, environments, pairlists, S4 objects, and data frames.
 - Improved workspace viewer performance by loading object items on demand. Expanding an object shows the first 500 items directly, and selecting the ellipsis row loads the next 500.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant